import request from '../utils/request';
//仓库管理业务接口文档
const api = {
  // 物料-新增物料规格
  AddSpecification(data?: any) {
    return request({
      url: '/api/GoodsSpecification/AddSpecification',
      method: 'post',
      data,
    });
  },
  // 物料规格-删除物料规格数据
  DeleteSpecification(data?: any) {
    return request({
      url: '/api/GoodsSpecification/DeleteSpecification',
      method: 'post',
      data,
    });
  },
  // 根据供应商获取物料和物料规格数据
  GetGoodsSpecificationBySupplierCode(data?: any) {
    return request({
      url: '/api/GoodsSpecification/GetGoodsSpecificationBySupplierCode',
      method: 'post',
      data,
    });
  },
};
export default api;
